package com.ikun.controller;

import com.ikun.pojo.Result;

import com.ikun.service.StoreClassService;
import com.ikun.service.impl.StoreClassServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RequestMapping("/StoreClass")
@RestController
public class StoreClassController {
    @Autowired
    StoreClassService storeClassServe;
    /**
     * 获取所有的店铺分类
     * @return
     */
    @GetMapping("/getStoreClass")
    public Result getStoreClass(){
        System.out.println("接收到了请求");
       return Result.success(storeClassServe.getAllStoreClass());
    }
}
